package megrez.job.custom.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.domain.AuditorAware;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 配置
 *  
 * @author Lucky Yang
 * @since 2.6.9
 */
@EnableTransactionManagement
@EnableScheduling
@EnableJpaAuditing(auditorAwareRef = "auditorAware")
@Configuration
public class CustomScheduleAutoConfig {
    @Bean
    public AuditorAware<String> auditorAware(){
        return new AuditorAwareImpl();
    }
}
